#include "DataStructure/Result/ElementalStrain/TRIA6StrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const TRIA6StrainData& val1, const TRIA6StrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_TERM, 4)
    FIELD_COMPARE_ARR (m_GRID, 4)
    FIELD_COMPARE_ARR (m_FD1, 4)
    FIELD_COMPARE_ARR (m_X1, 4)
    FIELD_COMPARE_ARR (m_Y1, 4)
    FIELD_COMPARE_ARR (m_TXY1, 4)
    FIELD_COMPARE_ARR (m_FD2, 4)
    FIELD_COMPARE_ARR (m_X2, 4)
    FIELD_COMPARE_ARR (m_Y2, 4)
    FIELD_COMPARE_ARR (m_TXY2, 4)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const TRIA6StrainData& a, const TRIA6StrainData& b)
{
    return a.m_eId < b.m_eId;
}
